package cn.edu.zut.cs.service;

import cn.edu.zut.cs.pojo.*;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 称重数据管理 服务类
 * </p>
 *
 * @author weighing
 * @since 2021-06-16
 */
public interface WeighingService extends IService<Weighing> {

    //展示所有称重数据
    List<Weighing> selectAllWeighting(User user);

    //按时间展示所有称重数据
    List<Weighing> selectWeightingByTime(User user ,Date date);

    WeighingVO barVOListByYear(User user,Integer year);

    WeighingVO barVOListByMonth(User user,Integer year,Integer month);

    List<DataVO> barVOListByDay(User user, Integer year, Integer month, Integer day);
    List<DataVO> barVOListByLastMonth(User user, Integer year, Integer month);

    Double countWeight(User user);
}
